//
//  TOSectionModel.m
//  SeaGullFM
//
//  Created by dllo on 15/11/18.
//  Copyright © 2015年 tianou. All rights reserved.
//

#import "WSSectionModel.h"

@implementation WSSectionModel

//-(instancetype)init
//{
//    self = [super init];
//    if (self) {
//        
//        
//    }
//    return self;
//}
////重写setter方法
//-(void)setList:(NSMutableArray *)list{
//    if (_list != list) {
//        [_list release];
//        _list = [list retain];
//    }
//    //    _list = list;
//    //    NSLog(@"%@",list);
//    NSMutableArray *array = [NSMutableArray array];
//    
//    for (NSDictionary *dic in _list) {//遍历数组
//        TOListModel *listModel = [TOListModel modelWithDictionary:dic];
//        [array addObject:listModel];
//        //        [listModel release];
//        
//    }
//    _list = [NSMutableArray arrayWithArray:array];
//    
//}

-(void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key
{
    //    NSLog(@"%@  %@", value ,key);
    if ([key isEqualToString:@"hotRecommends"]) {
        self.hotRecommend = [WSHotRecommends modelWithDictionary:value];
    }
    if ([key isEqualToString:@"focusImages"]) {
        self.focusImage = [WSFocusModel modelWithDictionary:value];
    }
    if ([key isEqualToString:@"editorRecommendAlbums"]) {
        self.editorRecommendAlbum = [WSEditorModel modelWithDictionary:value];
    }
    if ([key isEqualToString:@"specialColumn"]) {
        self.specialColumns = [WSSpecialModel modelWithDictionary:value];
    }
    if ([key isEqualToString:@"discoveryColumns"]) {
        self.discoveryColumn = [WSDiscoverModel modelWithDictionary:value];
    }
}

@end
